//
//  UINavigationController+XMAuto.m
//  XMAuto
//
//  Created by lishi on 2019/4/8.
//  Copyright © 2019 lishi. All rights reserved.
//

#import "UINavigationController+XMAuto.h"

@implementation UINavigationController (XMAuto)

- (BOOL)shouldAutorotate{
    return [self.topViewController shouldAutorotate];
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
    return [self.topViewController supportedInterfaceOrientations];
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    return [self.topViewController preferredInterfaceOrientationForPresentation];
}
- (UIViewController *)childViewControllerForStatusBarStyle{
    return self.topViewController;
}
- (UIViewController *)childViewControllerForStatusBarHidden{
    return self.topViewController;
}

@end
